<template>
	<view class="content">
		<info-carp @cgx="cgx"  :cgx='true' />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			cgx(a){
				if(a==1){
					uni.showModal({
						title: '提示',
						content: '确定要删除吗?',
						success: (res)=> {
							if (res.confirm) {
								console.log('用户点击确定');
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					});
				}
				console.log(a);
			},
		}
	}
</script>

<style lang="scss">

</style>
